package org.shj.pattern.memento;

public class Originator {

	private String status;
	
	public Memento createMemento(){
		return new Memento(status);
	}
	
	public void restore(Memento memento){
		status = memento.getStatus();
	}
	
	public void show(){
		System.out.println("Current status: " + status);
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	
}
